package com.xin.di.uav.operate.po;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author LTQ
 * @since 2023-12-07
 */
@TableName("placement_point")
@ApiModel(value = "PlacementPoint对象", description = "")
@Data
public class PlacementPoint implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("序号")
    private Integer sort;

    @ApiModelProperty("投放点名称 ")
    private String name;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("起飞经度")
    private BigDecimal senderLongitude;

    @ApiModelProperty("起飞纬度")
    private BigDecimal senderLatitude;


    @ApiModelProperty("配送费")
    private BigDecimal expressFee;
    @ApiModelProperty("配送时长")
    private Integer expressDuration;

    @ApiModelProperty("状态，0关闭，1开启")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("处理人")
    private String processedBy;

    @ApiModelProperty("景区id")
    private String scenicSpotId;

    private Boolean deleted;

    @NotBlank(message = "寄件人详细地址不能为空")
    private String senderAddr;

    @NotBlank(message = "寄件人电话不能为空")
    @Pattern(regexp = "1[3-9]\\d{9}", message = "寄件人电话格式不正确")
    private String senderTel;

    @NotBlank(message = "寄件人姓名不能为空")
    private String senderName;
}
